
import {combineReducers} from 'redux';
import TodoList from './TodoList'
import TodoLogin from './TodoLogin'
import TodoCount from './TodoCount'
//var Reducer=(state=[],action)=>{
//	switch (action.type){
//		case 'ADD_TODO':
//			let newstate=[...state];
//			newstate.push(action.text);
//			return newstate;
//		case 'RM_TODO':
//			let newstates=[...state];
//			newstates.splice(action.text,1);
//			return newstates;
//		default:
//			return state;
//	}
//}


var Reducer=combineReducers({
	list:TodoList,
	users:TodoLogin,
	count:TodoCount
})
//{list:[]}


export default Reducer;